<?php

namespace app\admin\validate\cate;

use think\Validate;

class CateCeshiValidate extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'cate_name' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'cate_name.require' => '栏目名称为空'
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => [],
        'edit' => ['cate_name'],
    ];
    
}
